package v4;

public class HeroFactory {

    public static Skill getHero(String name) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        String className = "v4.hero."+name;
        Class<?> classObj = Class.forName(className);
        Object  object = classObj.newInstance();
        return  (Skill)object;
    }


}
